package com.mijie.homi.admin.service.commom;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mijie.core.Paging;
import com.mijie.homi.admin.dao.commom.SensitiveWordDao;
import com.mijie.homi.admin.domain.commom.SensitiveWord;

@Service
public class SensitiveWordService {

	@Autowired
	private SensitiveWordDao dao;
	
	public int addSensitiveWord(SensitiveWord word){
		return dao.addSensitiveWord(word);
	}
	
	public SensitiveWord getSensitiveWordByWord(String word){
		return dao.getSensitiveWordByWord(word);
	}
	
	public void listSensitiveWord(Paging<SensitiveWord> paging,Map<String,Object> parameter){
		dao.listSensitiveWord(paging,parameter);
	}
	
	public void deleteSensitiveWord(String word){
		dao.deleteSensitiveWord(word);
	}
	
	public int updateSensitiveWord(SensitiveWord word){
		return dao.updateSensitiveWord(word);
	}
}
